home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 2⁄2⁄90 / 0601-re OpenOld w⁄o SFDLo-Feb90 < prev    next >
Encoding:
Text File  |  1990-02-02  |  887 b   |  31 lines  |  [TEXT/GEOL]

  1. Item    5325555                         1-Feb-90        19:47PST
  2.  
  3. From:   MACAPP.TEST                     MacApp SQA Team
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    re: OpenOld w/o SFDLog
  8.  
  9. I also have a couple of programs which open documents without the SF dialog.
  10. Chuck's description is helpful. In my case, it was sufficient to get the file
  11. in the application's folder, so I just used the application's working
  12. directory, which I computed in IMyApplication as follows:
  13.  
  14. PROCEDURE TTestApplication.ITestApplication;
  15. VAR  volName : Str255;
  16. BEGIN
  17.  ...
  18.  IApplication();
  19.  ...
  20.    FailOSErr(GetVol(@volName, gwdRefNum));
  21. ...
  22. END;
  23.  
  24. I then used gwdRefNum in the AppFile record passed to OpenOld. MacApp has
  25. generally kept me blissfully ignorant of the File Manager, so I may be missing
  26. something, but the above seemed to work for me.
  27.  
  28. Regards,
  29. Richard Rodseth
  30.  
  31.